package com.ithuang.websocket.dao;

import com.ithuang.websocket.config.Message;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface saveMessageDao {
//    @Insert("insert into message(toName,message) values(#{messages.toName},#{messages.message})")
//    public void  saveMessage(Message messages);

    @Insert("insert into message(toName, message) values(#{t}, #{n})")
    public void saveMessage(String n, String t);
}
